import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
        path: '/',
        redirect: 'sele',
    },
    {
        path: '/sele',
        name: '外卖',
        component: () =>
            import ('@/views/sele/index.vue')
    },
    {
        path: '/search',
        name: '搜索',
        component: () =>
            import ('@/views/search/index.vue')
    },
    {
        path: '/order',
        name: '订单',
        component: () =>
            import ('@/views/order/index.vue')
    },
    {
        path: '/profile',
        name: '我的',
        component: () =>
            import ('@/views/profile/index.vue')
    },
]

const router = new VueRouter({
    routes
})

export default router